package cn.gxufe.reliable.message.api.producer;

import cn.gxufe.reliable.message.common.ResultVo;

/**
 * @author yingjie.rong
 **/
public interface MessageCallBackInterface {
    /**
     * finish
     * @param messageId
     * @param key
     * @param header
     * @param finishData
     * @return ResultVo
     */
    ResultVo finish(Long messageId, String key, String header,String finishData);

    /**
     * finish
     * @param messageId
     * @param key
     * @param header
     * @param cancelData
     * @return ResultVo
     */
     ResultVo cancel(Long messageId, String key, String header,String cancelData);

}
